import request from '@/utils/request'


export function agentSubmitWithdraw(data) {
  return request({
    url: '/agent/money/withdraw',
    method: 'post',
    data: data
  })
}

export function agentWithdrawList(query) {
  return request({
    url: '/agent/money/withdrawList',
    method: 'get',
    params: query
  })
}
export function withdrawList(query) {
  return request({
    url: '/admin/money/withdrawList',
    method: 'get',
    params: query
  })
}

export function rechargeList(query) {
  return request({
    url: '/admin/money/rechargeList',
    method: 'get',
    params: query
  })
}

// 删除操作日志
export function pass(id) {
  return request({
    url: '/admin/money/pass?id=' + id,
    method: 'get'
  })
}

export function cancel(id) {
  return request({
    url: '/admin/money/cancel?id=' + id,
    method: 'get'
  })
}

// 清空操作日志
export function cleanOperlog() {
  return request({
    url: '/monitor/operlog/clean',
    method: 'delete'
  })
}
